{{#each services as |t| }}import S{{t.name}} from "{{t.path}}";{{/each}}
{{#each controllers as |t| }}import C{{t.name}} from "{{t.path}}";{{/each}}
import Context from "./context.ts";
import {buildRouter} from "./core.ts";

let ctx =new Context();
{{#each services as |t| }}ctx.addService("{{t.name}}",new S{{t.name}}(ctx));{{/each}}
{{#each controllers as |t| }}
ctx.addRouter(buildRouter("{{t.name}}",C{{t.name}}));
ctx.addController("{{t.name}}",new C{{t.name}}(ctx));
{{/each}}
ctx.buildUrlPatterns();
export { ctx };